<template>
  <div class="good-card">
    <img :src="require('@/assets/image/default_img.png')"
         alt="">
    <div class="good-info">
      <slot name="title">
        <span class="text-overflow_2-xzh">商品名称商品名称最多显示两行，多出的
          名称用...表示</span>
      </slot>
      <slot name="second">
        <span class="good-price">¥58.00</span>
      </slot>
      <slot name="third">
        <li class="good-tag">
          <van-tag color="#fe4a09"
                   plain>包邮</van-tag>
          <van-tag color="#fe4a09"
                   plain>包邮</van-tag>
        </li>
      </slot>
      <li class="good-shop">
        <slot name="last-left">
          <span>999+好评</span>
        </slot>
        <slot name="last-right">
          <span class="shop-name">美的旗舰店
            <van-icon name="arrow" />
          </span>
        </slot>
      </li>
    </div>
  </div>
</template>

<script>
export default {
  name: 'GoodCard',
  data () {
    return {
    };
  },

  created () { },
  methods: {}
}

</script>
<style lang='scss'>
.good-card {
  width: 100%;
  height: 2.4rem;
  box-sizing: border-box;
  padding: 0.2rem;
  display: flex;
  background-color: #ffffff;
  img {
    width: 2rem;
    height: 2rem;
    margin-right: 0.2rem;
  }
  .good-info {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    .text-overflow_2-xzh {
      font-size: 0.26rem;
      color: #131415;
    }
    .good-price {
      font-size: 0.32rem;
      font-weight: bold;
      color: #d92a0d;
    }
    .good-tag {
      display: flex;
      .van-tag {
        margin-right: 0.15rem;
      }
    }
    .good-shop {
      display: flex;
      justify-content: space-between;
      color: #999999;
      .shop-name {
        display: flex;
        align-items: center;
      }
    }
  }
}
</style>